package HLLib.base;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;

public class HLThread extends HLLibObject {
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_BASE, HLClassManager_H.LIB_CLASS_BASE_Thread);
    }

    public static void NotifyAll(HLObject object) {
        synchronized (object) {
            object.notifyAll();
        }
    }

    public static void Wait(HLObject object) {
        synchronized (object) {
            try {
                object.wait();
            } catch (InterruptedException e) {
            }
        }
    }

    public static void Sleep(int time) {
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
        }
    }

}
